#pragma once

#ifndef EVENT_WRAP
#define EVENT_WRAP

namespace cevent {

class EventListener;
struct EventListenerWrap {
	EventListenerWrap(EventListener* eventListener) : eventListener(eventListener) {};
	void dispose() {
		eventListener = nullptr;
		isDispose = true;
	}
	EventListener* eventListener;
	bool isDispose = false;
};
class findWrapEvent
{
public:
	static const EventListener* compare_to;
	bool operator()(const EventListenerWrap* eventListenerWrap) {
		return eventListenerWrap->eventListener == compare_to;
	}
};

}

#endif // EVENT_WRAP